<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap Admin</title>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="__APP__/Resource/lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="__APP__/Resource/style/theme.css">
<link rel="stylesheet" href="__APP__/Resource/lib/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="__APP__/Resource/lib/bootstrap-fileupload/bootstrap-fileupload.min.css">
<link rel="stylesheet" href="__APP__/Resource/lib/bootstrap-wysihtml5/bootstrap-wysihtml5.css">
<script src="__APP__/Resource/lib/jquery-1.8.1.min.js" type="text/javascript"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
<!--<![endif]-->
<div class="navbar">
  <div class="navbar-inner">
    <ul class="nav pull-right">
      <li id="fat-menu" class="dropdown"> <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> 夏文龙 <i class="icon-caret-down"></i> </a>
        <ul class="dropdown-menu">
          <li><a tabindex="-1" href="#">我的账户</a></li>
          <li class="divider"></li>
          <li><a tabindex="-1" class="visible-phone" href="#">设置</a></li>
          <li class="divider visible-phone"></li>
          <li><a tabindex="-1" href="sign-in.html">登出</a></li>
        </ul>
      </li>
    </ul>
    <a class="brand" href="__APP__"><span class="first">Your</span> <span class="second">Company</span></a> </div>
</div>
<div class="sidebar-nav"> <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-edit"></i>常用功能</a>
  <ul id="dashboard-menu" class="nav nav-list collapse in">
    <li><a href="index.php">返回首页</a></li>
    <li ><a href="users.html">分类管理<span class="label label-info">+3</span></a></li>
    <li ><a href="__APP__/Goods">商品管理<span class="label label-info">+3</span></a></li>
    <li ><a href="media.html">进货管理</a></li>
    <li ><a href="calendar.html">出货管理</a></li>
    <li ><a href="calendar.html">统计管理</a></li>
    <li ><a href="calendar.html">客户管理<span class="label label-info">+3</span></a></li>
  </ul>
  <a href="#user-menu" class="nav-header" data-toggle="collapse"><i class="icon-user"></i>账号管理<span class="label label-info">+3</span></a>
  <ul id="user-menu" class="nav nav-list collapse">
    <li ><a href="sign-in.html">账号登陆</a></li>
    <li ><a href="sign-up.html">账号登出</a></li>
    <li ><a href="reset-password.html">重设密码</a></li>
  </ul>
  <a href="#system-menu" class="nav-header" data-toggle="collapse"><i class="icon-cog"></i>系统管理</a>
  <ul id="system-menu" class="nav nav-list collapse">
    <li ><a href="sign-in.html">账号登陆</a></li>
    <li ><a href="sign-up.html">账号登出</a></li>
    <li ><a href="reset-password.html">重设密码</a></li>
  </ul>
  <a href="#error-menu" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i>Error Pages <i class="icon-chevron-up"></i></a>
  <ul id="error-menu" class="nav nav-list collapse">
    <li ><a href="403.html">403 page</a></li>
    <li ><a href="404.html">404 page</a></li>
    <li ><a href="500.html">500 page</a></li>
    <li ><a href="503.html">503 page</a></li>
  </ul>
  <a href="#legal-menu" class="nav-header" data-toggle="collapse"><i class="icon-legal"></i>Legal</a>
  <ul id="legal-menu" class="nav nav-list collapse">
    <li ><a href="privacy-policy.html">Privacy Policy</a></li>
    <li ><a href="terms-and-conditions.html">Terms and Conditions</a></li>
  </ul>
  <a href="help.html" class="nav-header" ><i class="icon-question-sign"></i>Help</a> <a href="faq.html" class="nav-header" ><i class="icon-comment"></i>Faq</a> </div>
<div class="content">
      <div class="header">
    <h1 class="page-title">商品管理</h1>
  </div>
      <ul class="breadcrumb">
    <li><a href="index.html">首页</a> <span class="divider">/</span></li>
    <li class="active">商品管理</li>
  </ul>
      <div class="container-fluid">
    <div class="row-fluid">
          <div class="btn-toolbar"> <a href="list.php" role="button" class="btn btn-primary">列表</a> <a href="#" role="button" class="btn">导入</a> <a href="#" role="button" class="btn">导出</a>
        <div class="btn-group"> </div>
      </div>
          <div class="well">
        <form action="insert" enctype="multipart/form-data" method="post">
              <table>
            <tr>
                  <td align="right" valign="top"><span class="label label-info">商品标题：</span></td>
                  <td><input class="input-xxlarge" type="text" placeholder="请输入标题" name="title"></td>
                </tr>
            <tr>
            <tr>
                  <td align="right" valign="top"><span class="label label-info">商品编号：</span></td>
                  <td><table><tr><td width="50" valign="top"><input class="input-small" type="text" placeholder="SKU" name="sku"></td><td valign="top"><button class="btn btn-info" type="button">生成</button></td></tr></table></td>
                </tr>
               
            <tr>
                  <td align="right" valign="top"><span class="label label-info">商品图片：</span></td>
                  <td><div class="fileupload fileupload-new" data-provides="fileupload">
                      <div class="fileupload-new thumbnail" style="width: 150px; height: 150px;"><img src="../../Resource/images/no-image.jpg" width="150" height="150" /></div>
                      <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 150px; max-height: 150px; line-height: 20px;"></div>
                      <div> <span class="btn btn-file"><span class="fileupload-new">选择一张图片</span><span class="fileupload-exists">替换</span>
                        <input type="file" name="picture" />
                        </span> <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">移除</a> </div>
                    </div></td>
                </tr>
                <tr>
                  <td align="right" valign="top"><span class="label label-info">采购价：</span></td>
                  <td><input class="input-medium" type="text" placeholder="保留小数点后两位" name="purchasing_price"></td>
                </tr>
                <tr>
                  <td align="right" valign="top"><span class="label label-info">入库数量：：</span></td>
                  <td><input class="input-medium" type="text" placeholder="整数" name="stock"></td>
                </tr>
                <tr>
                  <td align="right" valign="top"><span class="label label-info">商品重量：：</span></td>
                  <td><input class="input-medium" type="text" placeholder="保留小数点后两位" name="weight"></td>
                </tr>
                 <tr>
                  <td align="right"><span class="label">发布平台：</span></td>
                  <td>
                  <?php foreach ($platform as $key=>$value ):?>
                      <label class="checkbox inline"><input type="checkbox" name="platform[]" value="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
                  <?php endforeach;?>
                  </td>
                  
                </tr>
           
            <tr>
                  <td align="right"><span class="label">商品描述：</span></td>
                  <td><textarea class="textarea" style="width: 800px; height: 200px" name="content"></textarea></td>
                </tr>
            <tr>
                  <td align="right"></td>
                  <td><button type="submit" class="btn btn-primary">保存</button>
                <button type="button" class="btn">取消</button></td>
                </tr>
          </table>
            </form>
      </div>
      <footer>
        <hr>
        
        <!-- Purchase a site license to remove this link from the footer: http://www.portnine.com/bootstrap-themes -->
        <p class="pull-right">A <a href="http://www.portnine.com/bootstrap-themes" target="_blank">Free Bootstrap Theme</a> by <a href="http://www.portnine.com" target="_blank">Portnine</a></p>
        <p>&copy; 2012 <a href="http://www.portnine.com" target="_blank">Portnine</a></p>
      </footer>
    </div>
  </div>
</div>
<script src="__APP__/Resource/lib/bootstrap/js/bootstrap.js"></script> 
<script src="__APP__/Resource/lib/bootstrap-wysihtml5/wysihtml5-0.3.0.min.js"></script> 
<script src="__APP__/Resource/lib/bootstrap-fileupload/bootstrap-fileupload.min.js"></script> 
<script src="__APP__/Resource/lib/bootstrap-wysihtml5/bootstrap-wysihtml5.js"></script> 
<script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $('.textarea').wysihtml5();
        $('.fileupload').fileupload();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
            
        });
    </script>
</body>
</html>